<?php
/**
 * 系统设置
 * @author maniac
 */
namespace app\manage\controller;

use app\common\model\MemberRoles;
use app\common\service\GoodCategory;
use app\facade\GoodCategory as GoodCategoryFacade;
use app\facade\Options;

class System extends Base
{
    public function index()
    {
        // 系统设置信息
        $db    = unserialize(Options::option('app_info'));
        $site  = config('site.');
        $file  = config('system.');
        $roles = MemberRoles::field('id,name')->order('id ASC')->select();
        $fx_list=GoodCategoryFacade::categories();
        
        return $this->fetch('', [
            'db'    => $db,
            'site'  => $site,
            'file'  => $file,
            'roles' => $roles,
            'fx_list'=>$fx_list
        ]);
    }
}
